//
//  EeStyle.swift
//  SmoSky
//
//  Created by zhu xietong on 2018/5/29.
//  Copyright © 2018年 tianrun. All rights reserved.
//

import Foundation

import Eelay
open class EeBox: JoView {
    public var style:[EeStyle] = [EeStyle]()
    
    public let contentView = UIView()
    public let boderBottom = UIView()
    
    public var cons = [NSLayoutConstraint]()
    open override func addLayoutRules() {
//        style = [.width(10),.height(20),.margin([20,20]),.radius(width: 2, color: <#T##UIColor#>)]
    }
}

public enum EeStyle {
    case font(UIFont)
    case fontSize(CGFloat)
    case padding(UIEdgeInsets)
    case margin(UIEdgeInsets)
    case height(CGFloat)
    case width(CGFloat)
    case borderBottom(width:CGFloat,color:UIColor)
    case radius(width:CGFloat,color:UIColor,radius:CGFloat)
}

